package com.ruoyi.medical.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检查结果对象 checks
 *
 * @author ruoyi
 * @date 2024-02-28
 */
public class Checks extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 检查ID
     */
    private Long id;

    /**
     * 患者ID
     */
    @Excel(name = "患者ID")
    private Long patientId;

    /**
     * 患者name
     */
    private String patientName;

    /**
     * 患者对象
     */
    private SysUser sysUser;

    /**
     *
     */
    @Excel(name = "身份证号")
    private String idNumber;

    /**
     * 医生ID
     */
    @Excel(name = "医生ID")
    private Long doctorId;

    /**
     * 医生name
     */
    private String doctorName;


    /**
     * 送检日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "送检日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /**
     * 检查结果
     */
    @Excel(name = "检查结果")
    private String msg;

    /**
     * 检查收费
     */
    @Excel(name = "检查收费")
    private String amount;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    public Long getPatientId() {
        return patientId;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getAmount() {
        return amount;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("patientId", getPatientId())
                .append("idNumber", getIdNumber())
                .append("doctorId", getDoctorId())
                .append("date", getDate())
                .append("msg", getMsg())
                .append("amount", getAmount())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
